package com.dashu.school.model;


import com.dashu.base.enums.common.SubordinateType;
import com.dashu.base.enums.common.UserType;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;


@Entity
@Table(name = "ds_user")
@Data
public class User implements Serializable {
    /**
     * 中控后台用户
     */
    @Id
    private long id; //主键id
    private long createTime;//创建时间
    private long createUser;// 创建者
    private long updateTime;//更新时间
    private long updateUser;//更新者
    private String userName;//账号
    private String userPass;//密码
    private long pid;//权限
    private String head; //头像地址
    private long openTime;//权限时间
    @Enumerated(EnumType.STRING)
    private UserType userType;  //用户类型
    private String nickname;//昵称
    @Enumerated(EnumType.STRING)
    private SubordinateType subordinate;//管控
    private long owner; //账号所有者
    private long baseId; //上级
    private long level; //节点

}
